You are here: Building the Model: General Elements > Pre-defined Tank Subroutines > Tank_DoPrep > Description
Sets the state of the tank to Tank_Setup, waits for the specified time, then sets the state to Tank_Idle. Use Tank_DoPrep for cleaning activities after you empty a tank.
Use Tank_DoPrep to take a tank off line for cleaning or other preparation time.
Components
<Tank ID>
The tank name or location index number.
<Prep time>
The duration (in time units defined in the General Information dialog) of preparation time.
Example
Workers clean a mixing tank for 30 minutes after each batch produced. To model this, enter the following logic in the mixing subroutine defined for the mixing tank:
Tank_Loop //logic repeats continuously
{
[Enter mixing and transfer logic here]
Tank_DoPrep(MixingTank, 30)
}